package com.yhd.adapter.obj;

import com.yhd.adapter.EnglishTranslator;
import com.yhd.adapter.Player;
import com.yhd.adapter.Translator;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author yhd
 * @email yinhuidong1@xiaomi.com
 * @description TODO
 * @since 2021/5/21 上午12:33
 */
@AllArgsConstructor
@NoArgsConstructor
public class PLayerAdapter extends EnglishTranslator implements Player {

    private Player videoPlayer;

    private Translator translator;


    @Override
    public void play() {
        String message = this.translator.translator("澳门皇家赌场正式开业啦...");
        System.out.println(message);
    }
}
